/*
 * XML Type:  TransferInfo
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.TransferInfo
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML TransferInfo(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class TransferInfoImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.ofx.types.x2003.x04.TransferInfo
{
    
    public TransferInfoImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName BANKACCTFROM$0 = 
        new javax.xml.namespace.QName("", "BANKACCTFROM");
    private static final javax.xml.namespace.QName CCACCTFROM$2 = 
        new javax.xml.namespace.QName("", "CCACCTFROM");
    private static final javax.xml.namespace.QName BANKACCTTO$4 = 
        new javax.xml.namespace.QName("", "BANKACCTTO");
    private static final javax.xml.namespace.QName CCACCTTO$6 = 
        new javax.xml.namespace.QName("", "CCACCTTO");
    private static final javax.xml.namespace.QName TRNAMT$8 = 
        new javax.xml.namespace.QName("", "TRNAMT");
    private static final javax.xml.namespace.QName DTDUE$10 = 
        new javax.xml.namespace.QName("", "DTDUE");
    
    
    /**
     * Gets the "BANKACCTFROM" element
     */
    public net.ofx.types.x2003.x04.BankAccount getBANKACCTFROM()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BankAccount target = null;
            target = (net.ofx.types.x2003.x04.BankAccount)get_store().find_element_user(BANKACCTFROM$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "BANKACCTFROM" element
     */
    public boolean isSetBANKACCTFROM()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(BANKACCTFROM$0) != 0;
        }
    }
    
    /**
     * Sets the "BANKACCTFROM" element
     */
    public void setBANKACCTFROM(net.ofx.types.x2003.x04.BankAccount bankacctfrom)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BankAccount target = null;
            target = (net.ofx.types.x2003.x04.BankAccount)get_store().find_element_user(BANKACCTFROM$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.BankAccount)get_store().add_element_user(BANKACCTFROM$0);
            }
            target.set(bankacctfrom);
        }
    }
    
    /**
     * Appends and returns a new empty "BANKACCTFROM" element
     */
    public net.ofx.types.x2003.x04.BankAccount addNewBANKACCTFROM()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BankAccount target = null;
            target = (net.ofx.types.x2003.x04.BankAccount)get_store().add_element_user(BANKACCTFROM$0);
            return target;
        }
    }
    
    /**
     * Unsets the "BANKACCTFROM" element
     */
    public void unsetBANKACCTFROM()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(BANKACCTFROM$0, 0);
        }
    }
    
    /**
     * Gets the "CCACCTFROM" element
     */
    public net.ofx.types.x2003.x04.CreditCardAccount getCCACCTFROM()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.CreditCardAccount target = null;
            target = (net.ofx.types.x2003.x04.CreditCardAccount)get_store().find_element_user(CCACCTFROM$2, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "CCACCTFROM" element
     */
    public boolean isSetCCACCTFROM()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(CCACCTFROM$2) != 0;
        }
    }
    
    /**
     * Sets the "CCACCTFROM" element
     */
    public void setCCACCTFROM(net.ofx.types.x2003.x04.CreditCardAccount ccacctfrom)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.CreditCardAccount target = null;
            target = (net.ofx.types.x2003.x04.CreditCardAccount)get_store().find_element_user(CCACCTFROM$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.CreditCardAccount)get_store().add_element_user(CCACCTFROM$2);
            }
            target.set(ccacctfrom);
        }
    }
    
    /**
     * Appends and returns a new empty "CCACCTFROM" element
     */
    public net.ofx.types.x2003.x04.CreditCardAccount addNewCCACCTFROM()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.CreditCardAccount target = null;
            target = (net.ofx.types.x2003.x04.CreditCardAccount)get_store().add_element_user(CCACCTFROM$2);
            return target;
        }
    }
    
    /**
     * Unsets the "CCACCTFROM" element
     */
    public void unsetCCACCTFROM()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(CCACCTFROM$2, 0);
        }
    }
    
    /**
     * Gets the "BANKACCTTO" element
     */
    public net.ofx.types.x2003.x04.BankAccount getBANKACCTTO()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BankAccount target = null;
            target = (net.ofx.types.x2003.x04.BankAccount)get_store().find_element_user(BANKACCTTO$4, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "BANKACCTTO" element
     */
    public boolean isSetBANKACCTTO()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(BANKACCTTO$4) != 0;
        }
    }
    
    /**
     * Sets the "BANKACCTTO" element
     */
    public void setBANKACCTTO(net.ofx.types.x2003.x04.BankAccount bankacctto)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BankAccount target = null;
            target = (net.ofx.types.x2003.x04.BankAccount)get_store().find_element_user(BANKACCTTO$4, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.BankAccount)get_store().add_element_user(BANKACCTTO$4);
            }
            target.set(bankacctto);
        }
    }
    
    /**
     * Appends and returns a new empty "BANKACCTTO" element
     */
    public net.ofx.types.x2003.x04.BankAccount addNewBANKACCTTO()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BankAccount target = null;
            target = (net.ofx.types.x2003.x04.BankAccount)get_store().add_element_user(BANKACCTTO$4);
            return target;
        }
    }
    
    /**
     * Unsets the "BANKACCTTO" element
     */
    public void unsetBANKACCTTO()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(BANKACCTTO$4, 0);
        }
    }
    
    /**
     * Gets the "CCACCTTO" element
     */
    public net.ofx.types.x2003.x04.CreditCardAccount getCCACCTTO()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.CreditCardAccount target = null;
            target = (net.ofx.types.x2003.x04.CreditCardAccount)get_store().find_element_user(CCACCTTO$6, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "CCACCTTO" element
     */
    public boolean isSetCCACCTTO()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(CCACCTTO$6) != 0;
        }
    }
    
    /**
     * Sets the "CCACCTTO" element
     */
    public void setCCACCTTO(net.ofx.types.x2003.x04.CreditCardAccount ccacctto)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.CreditCardAccount target = null;
            target = (net.ofx.types.x2003.x04.CreditCardAccount)get_store().find_element_user(CCACCTTO$6, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.CreditCardAccount)get_store().add_element_user(CCACCTTO$6);
            }
            target.set(ccacctto);
        }
    }
    
    /**
     * Appends and returns a new empty "CCACCTTO" element
     */
    public net.ofx.types.x2003.x04.CreditCardAccount addNewCCACCTTO()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.CreditCardAccount target = null;
            target = (net.ofx.types.x2003.x04.CreditCardAccount)get_store().add_element_user(CCACCTTO$6);
            return target;
        }
    }
    
    /**
     * Unsets the "CCACCTTO" element
     */
    public void unsetCCACCTTO()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(CCACCTTO$6, 0);
        }
    }
    
    /**
     * Gets the "TRNAMT" element
     */
    public java.lang.String getTRNAMT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TRNAMT$8, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "TRNAMT" element
     */
    public net.ofx.types.x2003.x04.AmountType xgetTRNAMT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AmountType target = null;
            target = (net.ofx.types.x2003.x04.AmountType)get_store().find_element_user(TRNAMT$8, 0);
            return target;
        }
    }
    
    /**
     * Sets the "TRNAMT" element
     */
    public void setTRNAMT(java.lang.String trnamt)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TRNAMT$8, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(TRNAMT$8);
            }
            target.setStringValue(trnamt);
        }
    }
    
    /**
     * Sets (as xml) the "TRNAMT" element
     */
    public void xsetTRNAMT(net.ofx.types.x2003.x04.AmountType trnamt)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AmountType target = null;
            target = (net.ofx.types.x2003.x04.AmountType)get_store().find_element_user(TRNAMT$8, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.AmountType)get_store().add_element_user(TRNAMT$8);
            }
            target.set(trnamt);
        }
    }
    
    /**
     * Gets the "DTDUE" element
     */
    public java.lang.String getDTDUE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DTDUE$10, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "DTDUE" element
     */
    public net.ofx.types.x2003.x04.DateTimeType xgetDTDUE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DateTimeType target = null;
            target = (net.ofx.types.x2003.x04.DateTimeType)get_store().find_element_user(DTDUE$10, 0);
            return target;
        }
    }
    
    /**
     * True if has "DTDUE" element
     */
    public boolean isSetDTDUE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(DTDUE$10) != 0;
        }
    }
    
    /**
     * Sets the "DTDUE" element
     */
    public void setDTDUE(java.lang.String dtdue)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DTDUE$10, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DTDUE$10);
            }
            target.setStringValue(dtdue);
        }
    }
    
    /**
     * Sets (as xml) the "DTDUE" element
     */
    public void xsetDTDUE(net.ofx.types.x2003.x04.DateTimeType dtdue)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DateTimeType target = null;
            target = (net.ofx.types.x2003.x04.DateTimeType)get_store().find_element_user(DTDUE$10, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.DateTimeType)get_store().add_element_user(DTDUE$10);
            }
            target.set(dtdue);
        }
    }
    
    /**
     * Unsets the "DTDUE" element
     */
    public void unsetDTDUE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(DTDUE$10, 0);
        }
    }
}
